/****************************************************************************
**
** SecondLoginConnectionGump.h
**
** Copyright (C) August 2014 Hotride
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
*****************************************************************************
*/
//---------------------------------------------------------------------------
#ifndef SecondLoginConnectionGumpH
#define SecondLoginConnectionGumpH
//---------------------------------------------------------------------------
class TSecondLoginConnectionGump
{
private:
	bool m_ConnectionFailed;
	bool m_Connected;
	int m_ErrorCode;
	
	TEXT_TEXTURE_HEADER m_TextureConnection;
	TEXT_TEXTURE_HEADER m_TextureVerify;
	TEXT_TEXTURE_HEADER m_TextureFailed[9];

public:
	TSecondLoginConnectionGump();
	~TSecondLoginConnectionGump();

	SETGET(bool, Connected)
	SETGET(bool, ConnectionFailed)
	SETGET(int, ErrorCode)

	void Init();

	int Render(bool mode);
	
	void ParseLeftMouseDown();
	void ParseLeftMouseUp();
	void ParseRightMouseDown();
	void ParseRightMouseUp();
	bool ParseLeftMouseDoubleClick();
	bool ParseRightMouseDoubleClick();
	void ParseMouseWheel(MOUSE_WHEEL_STATE state);
	void ParseCharPress(WPARAM wparam, LPARAM lparam);
	void ParseKeyPress(WPARAM wparam, LPARAM lparam);
};
//---------------------------------------------------------------------------
#endif